package com.fandou.airobot.ui.voiceassistant;

import androidx.annotation.Keep;

/**
 * @author Jm
 * @date 2020/7/13 9:24
 * @description
 */
@Keep
public class VoiceAssistantEvent {

    /**
     * start asr
     */
    public static final String KEY_START_ASR = "startAsr";

    /**
     * 用户开始说话
     */
    public static final String KEY_ON_ASR_BEGIN = "on_asr_begin";

    /**
     * onAsrResult
     */
    public static final String KEY_ON_ASR_RESULT = "on_asr_result";

    /**
     * updateVolume
     */
    public static final String KEY_ON_UPDATE_VOLUME = "on_update_volume";


    /**
     * 用户说话结束
     */
    public static final String KEY_ON_ASR_END = "on_asr_end";


    /**
     * 语音识别失败回调
     */
    public static final String KEY_ON_ASR_ERROR = "on_asr_error";

    /**
     * 在线识别结果
     */
    public static final String KEY_ON_ASR_ONLINE_NLU_RESULT = "on_asr_online_nlu_result";

    /**
     * 启动 拍照搜题
     */
    public static final String LAUNCHER_TOPIC_SEARCH_ACTIVITY = "to_topic_search_activity";

    /**
     * 停止阅读内容，停止识别
     */
    public static final String STOP_SPEAK_AND_ASR = "stop_asr";

    /**
     * 关闭语音界面回调
     */
    public static final String CLOSE_VOICE_ASSISTANT = "close_voice_assistant";

    private String content;

    /**
     * 标识阅读完后，是否继续唤起语音识别
     */
    private boolean keepOnAsr;

    /**
     * 标识是否需要关闭VoiceAssistantActivity
     */
    private boolean need2Close;

    public VoiceAssistantEvent(String content, boolean keepOnAsr, boolean need2Close) {
        this.content = content;
        this.keepOnAsr = keepOnAsr;
        this.need2Close = need2Close;
    }

    public boolean isNeed2Close() {
        return need2Close;
    }

    public void setNeed2Close(boolean need2Close) {
        this.need2Close = need2Close;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isKeepOnAsr() {
        return keepOnAsr;
    }

    public void setKeepOnAsr(boolean keepOnAsr) {
        this.keepOnAsr = keepOnAsr;
    }

}
